
//
//  WBDemoViewController.swift
//  weibo
//
//  Created by apple on 2017/5/19.
//  Copyright © 2017年 hbjApple. All rights reserved.
//

import UIKit

class WBDemoViewController: WBBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    @objc fileprivate func showNext(){
        let vc = WBDemoViewController()
        navigationController?.pushViewController(vc, animated: true)
        
    }

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
extension WBDemoViewController{
    override func setupUI() {
        super.setupUI()
        
        //设置右侧的控制器v/Users/apple/Desktop/swiftproject/weibo/weibo/Classses/View(试图和控制器)/Main/测试/WBDemoViewController.swift:46:128: 'showNext' is inaccessible due to 'private' protection level
        navItem.rightBarButtonItem = UIBarButtonItem(title: "下一个", style: .plain, target: self, action: #selector(showNext))
    }
}
